package com.leadbank.example;

import com.leadbank.example.convert.WxMappingJackson2HttpMessageConverter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * Hello world!
 *
 */
@SpringBootApplication
//@EnableDiscoveryClient // 开启Eureka客户端
public class ConsumerMovieApplication
{
    @Bean
    public RestTemplate restTemplate() {
        RestTemplate template =  new RestTemplate();
        template.getMessageConverters().add(new WxMappingJackson2HttpMessageConverter());
        return template;
    }


    public static void main( String[] args )
    {
        SpringApplication.run(ConsumerMovieApplication.class,args);
    }
}
